/**
 * 准备面试
 */
import React from 'react';
import { withRouter, router } from 'umi';
import AuthComponent from '@/utils/auth/AuthComponent';

import { Icon } from '../../components';

function InterviewPreparationOperate({ candidateId, arrangeId, ...rest }) {
    const handleJump = () => {
        history.push({
            pathname: '/office/personnelManagement/recruitment/interview/preparation/edit',
            query: { candidateId, arrangeId }
        });
    };
    return (
        <AuthComponent code="office:recruitment:course:interview:prepare:edit">
            <Icon title="修改面试准备" type="listfunction_readyinterview_icon_default" onClick={handleJump} {...rest} />
        </AuthComponent>
    );
}
export default withRouter(InterviewPreparationOperate);
